package com.hs.myshell.demo.swt;

public class MyCursor {

	private boolean show;
	private int row;
	private int col;
	public boolean isShow() {
		return show;
	}
	public void setShow(boolean show) {
		this.show = show;
	}
	public int getRow() {
		return row;
	}
	public void setRow(int row) {
		this.row = row;
	}
	public int getCol() {
		return col;
	}
	public void setCol(int col) {
		this.col = col;
	}
	/**
	 * 增加一个字符的宽度
	 * @param fontSize
	 */
	public void addColFontSize(int fontSize) {
		this.col = col + fontSize;
	}
	
	public MyCursor cloneCursor(MyCursor myCursor) {
		myCursor.setCol(this.col);
		myCursor.setRow(this.row);
		return myCursor;
	}
	
	
}
